package com.jeeplus.modules.statistics.mapper;

import com.jeeplus.modules.statistics.model.domain.ReserveCount;
import com.jeeplus.modules.statistics.model.query.ReserveQuery;
import com.jeeplus.modules.statistics.model.query.StatisticsQuery;
import com.jeeplus.modules.statistics.model.vo.ReserveVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: ReserveMapper
 * Function:  预约
 * Date:      2021/3/13 17:16
 *
 * @author hanKongbin
 * version    V1.0
 */
@Mapper
@Repository
public interface ReserveMapper {

    /**
     * 查询预约记录
     *
     * @param query
     * @return
     */
    List<ReserveVO> selectBy(ReserveQuery query);


    /**
     * 预约业务统计
     *
     * @param query
     * @return
     */
    List<ReserveCount> statistics(StatisticsQuery query);


    /**
     * 修改删除标识
     *
     * @param id
     * @return
     */
    int updateStatus(String id);
}
